package com.test.personalblogproject.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (FavoritesItem)实体类
 *
 * @author makejava
 * @since 2025-09-14 20:59:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("favorites_item")
public class FavoritesItem  {

/**
     * 主键
     */
@TableId(type = IdType.AUTO)
private Long id;
/**
     * 关联文章表(id)，指出被收藏的是哪篇文章
     */
    private Long articleId;
/**
     * 关联用户表(id)，指出是哪个用户执行的收藏操作
     */
    private String userId;
/**
     * 关联收藏夹表(id)，指出属于哪个收藏夹
     */
    private Long collectionId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Long collectionId) {
        this.collectionId = collectionId;
    }

}

